package com.heqiang.service;

import com.heqiang.domain.Admin;
import com.heqiang.mapper.AdminMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminService {
    @Autowired
    AdminMapper mapper;

    /****************************************************** Query *****************************************************/
    //条件查询管理员集合
    public List<Admin> findAll(Admin admin) {
        return mapper.findAll(admin);
    }
    //登录判断
    public Admin login(Admin admin) {
        return mapper.login(admin);
    }
}
